Tests\Module\Checkout\CheckoutServiceTest S

Total Complexity 33
Dependencies 10
Dependents 0
Total lines 296
Lines of code 204
Logical lines of code 125
Comment lines 0
Methods 33
Properties 8

Methods 33

Method Rating Maintainability Complexity Lines of code
createCheckoutServiceMock()
S
57 1 18
testCalculateShippingAndGetOptionIdReturnsEmptyStringWhenNoShippingRatesExists()
S
73 1 5
testCalculateShippingAndGetOptionIdReturnsShippingRateIdStrippedOfPrefix()
S
64 1 9
testGetChosenMethodWhenPostShippingMethodIsNull()
S
72 1 5
testGetChosenMethodWhenPostShippingMethodIsNotNull()
S
67 1 7
testGetShippingMethodOptionIdWithValueNotContainingPrefix()
S
73 1 5
testGetShippingMethodOptionIdWithValueContainingPrefix()
S
70 1 6
testGetShippingMethodOptionIdWithEmptyValue()
S
76 1 4
testIsPacketeryShippingMethodReturnsFalseWhenGivenInvalidOptionId()
S
73 1 5
testIsPacketeryShippingMethodReturnsTrueWhenGivenValidOptionId()
S
73 1 5
testGetCarrierIdFromShippingMethodNonPacketery()
S
77 1 4
testGetCarrierIdFromShippingMethodPacketery()
S
73 1 5
testGetCarrierIdFromShippingMethodEmpty()
S
77 1 4
testGetCarrierIdFromPacketeryShippingMethod()
S
66 1 10
testIsPickupPointOrderWhenNoMethod()
S
71 1 6
testIsPickupPointOrderWhenItIsNot()
S
68 1 7
testIsPickupPointOrderWhenItIs()
S
68 1 7
testIsPickupPointOrderWhenItIsInternal()
S
68 1 7
testIsHomeDeliveryOrderWithHomeDelivery()
S
70 1 6
testIsHomeDeliveryOrderWithNonHomeDelivery()
S
70 1 6
testIsHomeDeliveryOrderWithNoChosenMethod()
S
73 1 5
testIsHomeDeliveryOrderWithEmptyChosenMethod()
S
73 1 5
testIsCarDeliveryOrderWithCarDelivery()
S
70 1 6
testIsCarDeliveryOrderWithNonCarDelivery()
S
70 1 6
testIsCarDeliveryOrderWithNoChosenMethod()
S
73 1 5
testIsCarDeliveryOrderWithEmptyChosenMethod()
S
73 1 5
testGetCustomerCountryWhenCustomerShippingCountryIsNotNull()
S
70 1 6
testGetCustomerCountryWhenCustomerShippingCountryIsNull()
S
68 1 7
testGetCustomerCountryWhenCustomerShippingCountryAndCustomerBillingCountryAreNull()
S
70 1 6
testAreBlocksUsedInCheckoutBlockDetection()
S
73 1 5
testAreBlocksUsedInCheckoutClassicDetection()
S
73 1 5
testAreBlocksUsedInCheckoutAutomaticDetectionWithBlock()
S
71 1 6
testAreBlocksUsedInCheckoutAutomaticDetectionWithoutBlock()
S
71 1 6